package com.xju.bootdemo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @Author lj
 * @Date 2023/12/6 17:37
 * @Version 1.0
 */
@Data
@Accessors(chain = true)
@TableName("tbl_employee")
public class Employee {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private String lastName;
    private String email;
    private String gender;
    private int age;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @TableLogic
    @TableField("is_deleted")
    private Boolean deleted;
    // 添加内容
    // 我是组员
}
